-
Notifications
You must be signed in to change notification settings - Fork 69
chore: remove vendor subdir #1012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1012 +/- ##
==========================================
- Coverage 77.40% 77.05% -0.36%
==========================================
Files 198 198
Lines 27715 27717 +2
==========================================
- Hits 21453 21357 -96
- Misses 6262 6360 +98
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
d90a2f7
to
d516758
Compare
Abort build if protobuf-c cannot be found in the system without falling back to building and using protobuf-c from vendor subdir. axiom build needs protoc-c (provided by protobuf-c-compiler package) and agent needs to link to protobuf-c static library (provided by protobuf-c-devel). Static library is required to avoid shared objects runtime dependencies on customers' systems. Don't attempt to build protobuf compiler from vendor subdir - assume it is installed and let the build fail if it is not. protobuf compiler alone is not enough for the rule that used it anyway - protoc-gen-go is needed too, and it has never been vendored but rather was assumed to be installed on the build system. The rule that uses protobuf compiler and protoc-gen-go is not part of the build anyway - its output is checked in to the repository. The rule exists as documentation how to regenerate infinite tracing code for the daemon.
The agent uses protobuf-c library to provide support infinite tracing - infinite tracing endpoint speaks protobuf.
d516758
to
e28f504
Compare
export GIT | ||
|
||
.PHONY: vendor vendor-clean | ||
.PHONY: protobuf-c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was the export GIT
line removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the `HAVE_PROTOBUF_C != 0` check part of recipe where its needed rather than making the check in a phony target. Using phony target results in axiom rebuilding every time any target is build. Fixup of #1012.
With the use of containerized build platforms, there's no need to vendor agent's build dependencies.